<?php print '<'; ?>?xml version="1.0"?<?php print '>'; ?>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://demo.restful-php.net" xmlns="http://demo.restful-php.net" elementFormDefault="qualified">
    <xs:element name="mapping">
        <xs:complexType>
            <xs:sequence><?php
    header('content-type: text/xml');
    $classFiles = Util::getMappingClassNameArray(true);
    foreach ($classFiles as $objName){
        print '
                <xs:element name="'.$objName.'">'.$objName::getXsdPart().'</xs:element>';
    }

?>

            </xs:sequence>
        </xs:complexType>
    </xs:element>
</xs:schema>